import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class arraytoList {
	public static void main(String[] args) {

		String[] rndString = new String[10000];
		for (int i = 0; i < rndString.length; i++) {
			rndString[i] = randString(4);
			// System.out.println(randString(4));
		}
		for (String str : rndString) {
			System.out.println(str);
		}
		ArrayList<String> rndStringList=(ArrayList<String>) Arrays.asList(rndString);
		System.out.println(rndStringList);
	}

	public static String randString(int len) {
		String s = new String();
		for (int i = 0; i < len; i++) {
			s = "" + rndChar() + s;

		}
		return s;
	}

	public static char rndChar() {
		int rnd = (int) (Math.random() * 52);
		char base = (rnd < 26) ? 'A' : 'a';
		return (char) (base + rnd % 26);
	}
}
